import { createApp } from "vue";
import { createPinia } from "pinia";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import App from "./App.vue";
import router from "./router";
import pinia from "./stores";
import "./mock/quality/inspection";

// 确保在开发环境下加载 mock
if (import.meta.env.DEV) {
  import("./mock/index.js");
}

const app = createApp(App);

app.use(pinia);
app.use(router);
app.use(ElementPlus);

app.mount("#app");
